package com.ids.daoManager;

import java.util.Map;

import com.ids.bean.UserAttendanceData;
import com.ids.dao.AttendanceScreenDao;

public class AttendanceScreenDaoManager {
	private static AttendanceScreenDaoManager instance = new AttendanceScreenDaoManager();

	public static AttendanceScreenDaoManager getInstance() {
		return instance;
	}

	public Map<Integer,String> getAttendanceType(String empCode) {
		Map<Integer,String> attendanceType = AttendanceScreenDao.getInstance()
				.getAttendanceType(empCode);
		return attendanceType;
	}

	public Map<Integer,String> getDependantAttendanceType(int attendanceTypeId, String empCode) {
		Map<Integer,String> attendanceType = AttendanceScreenDao.getInstance()
				.getDependantAttendanceType(attendanceTypeId,  empCode);
		return attendanceType;
	}

	public UserAttendanceData getSelectedAttendance(String date, String empCode) {
		UserAttendanceData userAttendance = AttendanceScreenDao.getInstance()
				.getSelectedAttendance(date, empCode);
		return userAttendance;
	}
	public float getPLCount(String empCode){
		return AttendanceScreenDao.getInstance().getPLCount( empCode);
	}
}
